# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=adbtuifm
pkgver=0.5.8
pkgrel=0
pkgdesc="A TUI File Manager for Android Debug Bridge (ADB)"
url="https://github.com/darkhz/adbtuifm"
license="MIT"
arch="all"
makedepends="go"
options="!check" # no test files
source="$pkgname-$pkgver.tar.gz::https://github.com/darkhz/adbtuifm/archive/refs/tags/v$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build -v .
}

package() {
	install -Dm0755 "$pkgname" -t "$pkgdir"/usr/bin
}

sha512sums="
78db21a7414be6a230ca0fa51dfb06e52f773b50aa473df51341a5b1484a491016f87d567b7a05e0ea85b4437294f5c7a3e6ceb6b2ce1bf11f15cba822dbe770  adbtuifm-0.5.8.tar.gz
"
